<template>
  <ShopForm titles="新增门店" :data="shopData" @handle="add"></ShopForm>
</template>

<script>
import ShopForm from "../../components/ShopManage/shopForm.vue";
import { createNamespacedHelpers } from "vuex";
const { mapState, mapMutations, mapActions } = createNamespacedHelpers(
  "ShopManage"
);
export default {
  components: {
    ShopForm
  },
  data() {
    return {
      shopData: {
        name: "", // 名称
        address: "", // 地址
        telephone: "", // 电话
        desc: "" // 门店描述
      }
    };
  },
  methods: {
    ...mapActions(["addShop"]),
    add(data) {
      this.addShop(data);
    }
  }
};
</script>

<style>
</style>